package cn.lg.soar.activiti.mapper;

import cn.lg.soar.activiti.vo.HistoryTaskQO;
import cn.lg.soar.activiti.vo.HistoryTaskVO;
import cn.lg.soar.activiti.vo.TaskQO;
import cn.lg.soar.activiti.vo.TaskVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.activiti.engine.repository.Model;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@Mapper
public interface ActTaskMapper extends BaseMapper<Model> {

    IPage<TaskVO> todo(IPage<TaskVO> page, @Param("qo") TaskQO qo, @Param("candidates") Collection<String> candidates);

    IPage<HistoryTaskVO> done(IPage<HistoryTaskVO> page, @Param("qo") HistoryTaskQO qo);

}
